<div ng-show="cols.length == 0">
    <div class="remind-r">
        <div class="tu"><i class="icon-engine-remind"></i></div>
        <div class="text">暂无决策表，请先进行列配置。</div>
        <div class="clear"></div>
    </div>
    <div>
        <table>
            <tr>
                <td colspan="2" >条件列&nbsp;&nbsp;&nbsp;&nbsp;
                    <button class="engine-btn-success" ng-click="showColConfig()" pg-sta="{{status}}|0">配置列</button></td>
                <td>推论列</td>
            </tr>
            <tr style="background-color: #F0F0F0;">
                <td style="width: 10%;">操作</td>
                <td style="width: 60%;"></td>
                <td></td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td></td>
                <td></td>
            </tr>
        </table>
    </div>
</div>

<div ng-show="cols.length>0" style="position:absolute;top:100px;right:10px;bottom:10px;left:20px;overflow:auto; ">
    <div>
        <table>
            <tr>
                <td colspan="{{cols.length + 2}}" >
                    <button class="engine-btn-default" ng-click="addRow()" pg-per="{{packageId}}|1" pg-sta="{{status}}|0">添加行</button>
                    <button class="engine-btn-default" ng-click="showColConfig2()" pg-per="{{packageId}}|1" pg-sta="{{status}}|0">配置列</button>
                    <!--<button type="button" class="engine-btn-success" ng-click="save()" pg-per="{{packageId}}|1" pg-sta="{{status}}|0"><i class="icon-engine-preservation"></i>保存</button>-->
                    &nbsp;&nbsp;&nbsp;&nbsp;条件列
                </td>
                <td>推论列</td>
            </tr>
            <tr style="background-color: #F0F0F0;">
                <td style="width: 10%;">操作</td>
                <td style="width: 10%;">启用</td>
                <td ng-repeat="col in cols">{{col.name}}</td>
                <td style="width:20%">双击设置推论</td>
            </tr>
            <tr ng-repeat="row in rows">
                <td>
                    <a href="javascript:void(0)" ng-click="removeRow($index)" pg-sta="{{status}}|0">删除</a>&nbsp;&nbsp;
                    <a href="javascript:void(0)" ng-click="editRow($index)" pg-sta="{{status}}|0">编辑</a>
                </td>
                <td><input ng-model="row.status" type="checkbox" value="1" ng-change="saveStatus()"/></td>
                <td ng-dblclick="editCell(row, col)" ng-repeat="col in cols">{{formatterCell(row, col)}}</td>
                <td ng-dblclick="editDedution(row)">{{formatterDedution(row)}}</td>
            </tr>
        </table>
    </div>
</div>